import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import axios from './utils/request.js';
import base64 from './utils/base64';
import uView from 'uview-ui';
import {parseTime} from '@/utils/utils';
// import './common.scss'
//引入vuex
import store from './store';
//把vuex定义成全局组件
Vue.prototype.$store = store;
Vue.prototype.$parseTime = parseTime;

Vue.use(uView)
// 如此配置即可
uni.$u.config.unit = 'rpx'
Vue.config.productionTip = false;
Vue.prototype.$axios = axios;
Vue.prototype.$base = base64;

App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif